import {userStrategyDelete} from "@/api/strategy/user"
import {useCreateModal} from "@/hooks"
import EditModal from './edit-modal.vue'

export const columns = [ // 进程策略
    {
        title: '用户名',
        dataIndex: 'username',
    },
    {
        title: '策略名称',
        dataIndex: 'tempname',
    },
    {
        title: '安全标记',
        dataIndex: 'safemark',
        slots: {
            customRender: 'safemark'
        },
        slotsType: 'format',
        slotsFunc: (val) => ({
            1: '高级',
            3: '低级'
        }[val])
    },
    {
        title: '完整性标记',
        dataIndex: 'completemark',
        slots: {
            customRender: 'completemark'
        },
        slotsType: 'format',
        slotsFunc: (val) => ({
            1: '高级',
            3: '低级'
        }[val])
    },
    {
        title: '注册表权限',
        dataIndex: 'register',
        slots: {
            customRender: 'register'
        },
        slotsType: 'format',
        slotsFunc: (val) => ({
            null: '否',
            0: '否',
            1: '是'
        }[val])
    },
    {
        title: '高级权限',
        dataIndex: 'processprotect',
        slots: {
            customRender: 'processprotect'
        },
        slotsType: 'format',
        slotsFunc: (val) => ({
            null: '否',
            0: '否',
            1: '是'
        }[val])
    }
]
